package com.jmlee.mapper;

import com.jmlee.pojo.AItemSecKill;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface AItemSecKillMapper {
    /**
     * 新增秒杀商品
     * @param aItemSecKill
     * @return
     */
    Integer insertAItemSecKill(AItemSecKill aItemSecKill);

    /**
     * 修改秒杀商品
     * @param aItemSecKill
     * @return
     */
    Integer updateAItemSecKill(AItemSecKill aItemSecKill);

    /**
     * 获取秒杀商品列表
     * @param rowBounds
     * @param
     * @return
     */
    List<AItemSecKill> selectAItemSecKillList(RowBounds rowBounds);
    List<AItemSecKill> selectAItemSecKillList(AItemSecKill aItemSecKill);
    List<AItemSecKill> selectAItemSecKillList(RowBounds rowBounds, AItemSecKill aItemSecKill);
    List<AItemSecKill> selectAItemSecKillList();

    /**
     * 获取总记录条数
     * @return
     */
    Long selectRecordCount(AItemSecKill aItemSecKill);
}
